<?php
namespace app\tp\controller;
use think\config;
use think\Request;
use think\Loader;


class Index3 
{
   


public function index6(Request $request)
	{
	$res = [
	   'code' =>200,
	   'result'=>[
	      'list' => [1,2,3,4,5,6]   
	   ]
	   ];
	Config::set('default_return_type','xml');

	return $res;
	}	


	public function index7(){
	
	// $obj = new \mikkle\tp_wechat\Wechat(); 正确
	$obj = new \Comtext\com_text\Wtext();
	$obj->yanzheng();
	
	}

	/***
	 * vendor 下 有命名空间 引入的方法
	 */
	public function index8(){
		// Vendor('phpoffice.phpWord.src.PhpWord.PhpWord');
		 Vendor('anli.anli3.Index');
	$mod = new \PhpOffice\PhpWord\PhpWord();   // 注意反斜杠
	$mod->index();
	}
}
